
rem change encoding to UTF - 8
chcp 65001
rem show current dir
echo curdir:%cd%  
set p_work=%cd%
rem show bat ,include \
rem echo BAT dir:%~dp0 
rem write file
cd %~dp0 
rem vscode close
rem start %SystemRoot%\system32\cmd.exe /c TASKKILL /F /FI "IMAGENAME eq code*
rem update
if exist "pre_log.txt" (
    rem timeout /t 5
    del "pre_log.txt"
    exit
) else (
    echo %p_work%>pre_log.txt
    cd ../../
    for %%i in (*.md) do ( 
    echo --------------------------- >>%%i
    echo ## %date:~3,10% %time:~0,5% >>%%i
    echo * qt log                    >>%%i
    echo *                           >>%%i
    )
)

echo curdir:%cd%  





